home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_emacs.idb / usr / freeware / share / emacs / 19.34 / lisp / electric.elc.z / electric.elc
Emacs Compiled Lisp  |  1998-10-28  |  2.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 72 6d 73 40 6d 6f 6c |piled by| rms@mol|
|00000020| 65 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |e.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 46 72 69 20 | 41 70 72 20 20 35 20 31 | on Fri |Apr 5 1|
|00000040| 36 3a 31 32 3a 30 33 20 | 31 39 39 36 0a 3b 3b 3b |6:12:03 |1996.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 67 64 2f 67 | from fi|le /gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2f 31 39 2e 30 2f 6c 69 |nu/emacs|/19.0/li|
|00000070| 73 70 2f 65 6c 65 63 74 | 72 69 63 2e 65 6c 0a 3b |sp/elect|ric.el.;|
|00000080| 3b 3b 20 65 6d 61 63 73 | 20 76 65 72 73 69 6f 6e |;; emacs| version|
|00000090| 20 31 39 2e 33 30 2e 39 | 35 2e 31 2e 0a 3b 3b 3b | 19.30.9|5.1..;;;|
|000000a0| 20 62 79 74 65 63 6f 6d | 70 20 76 65 72 73 69 6f | bytecom|p versio|
|000000b0| 6e 20 46 53 46 20 32 2e | 31 30 0a 3b 3b 3b 20 6f |n FSF 2.|10.;;; o|
|000000c0| 70 74 69 6d 69 7a 61 74 | 69 6f 6e 20 69 73 20 6f |ptimizat|ion is o|
|000000d0| 6e 2e 0a 3b 3b 3b 20 74 | 68 69 73 20 66 69 6c 65 |n..;;; t|his file|
|000000e0| 20 75 73 65 73 20 6f 70 | 63 6f 64 65 73 20 77 68 | uses op|codes wh|
|000000f0| 69 63 68 20 64 6f 20 6e | 6f 74 20 65 78 69 73 74 |ich do n|ot exist|
|00000100| 20 69 6e 20 45 6d 61 63 | 73 20 31 38 2e 0a 0a 28 | in Emac|s 18...(|
|00000110| 69 66 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |if (and |(boundp |
|00000120| 27 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 29 0a |'emacs-v|ersion).|
|00000130| 09 20 28 6f 72 20 28 61 | 6e 64 20 28 62 6f 75 6e |. (or (a|nd (boun|
|00000140| 64 70 20 27 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |dp 'epoc|h::versi|
|00000150| 6f 6e 29 20 65 70 6f 63 | 68 3a 3a 76 65 72 73 69 |on) epoc|h::versi|
|00000160| 6f 6e 29 0a 09 20 20 20 | 20 20 28 73 74 72 69 6e |on).. | (strin|
|00000170| 67 2d 6c 65 73 73 70 20 | 65 6d 61 63 73 2d 76 65 |g-lessp |emacs-ve|
|00000180| 72 73 69 6f 6e 20 22 31 | 39 2e 32 39 22 29 29 29 |rsion "1|9.29")))|
|00000190| 0a 20 20 20 20 28 65 72 | 72 6f 72 20 22 60 65 6c |. (er|ror "`el|
|000001a0| 65 63 74 72 69 63 2e 65 | 6c 27 20 77 61 73 20 63 |ectric.e|l' was c|
|000001b0| 6f 6d 70 69 6c 65 64 20 | 66 6f 72 20 45 6d 61 63 |ompiled |for Emac|
|000001c0| 73 20 31 39 2e 32 39 20 | 6f 72 20 6c 61 74 65 72 |s 19.29 |or later|
|000001d0| 22 29 29 0a 0a 0a 28 64 | 65 66 61 6c 69 61 73 20 |"))...(d|efalias |
|000001e0| 27 45 6c 65 63 74 72 69 | 63 2d 63 6f 6d 6d 61 6e |'Electri|c-comman|
|000001f0| 64 2d 6c 6f 6f 70 20 23 | 5b 28 72 65 74 75 72 6e |d-loop #|[(return|
|00000200| 2d 74 61 67 20 26 6f 70 | 74 69 6f 6e 61 6c 20 70 |-tag &op|tional p|
|00000210| 72 6f 6d 70 74 20 69 6e | 68 69 62 69 74 2d 71 75 |rompt in|hibit-qu|
|00000220| 69 74 20 6c 6f 6f 70 2d | 66 75 6e 63 74 69 6f 6e |it loop-|function|
|00000230| 20 6c 6f 6f 70 2d 73 74 | 61 74 65 29 20 22 c0 89 | loop-st|ate) "..|
|00000240| 09 1a 1b 1c 09 3b 84 1a | 00 09 c0 3d 84 1a 00 09 |.....;..|...=....|
|00000250| c5 3d 84 1a 00 09 20 12 | 5c 6e 3b 84 2c 00 5c 6e |.=.... .|\n;.,.\n|
|00000260| c5 3d 83 2a 00 c0 12 82 | 2c 00 c6 12 c7 5c 6e 21 |.=.*....|,....\n!|
|00000270| 89 14 89 47 53 48 16 08 | c9 5c 66 ca 5c 22 89 16 |...GSH..|.\f.\"..|
|00000280| 0b 14 cc 16 0d 0e 0e c0 | 16 0e 84 51 00 0e 0f d0 |........|...Q....|
|00000290| 3d 83 76 00 c0 16 11 c0 | 16 12 d3 20 47 d4 55 84 |=.v.....|... G.U.|
|000002a0| 64 00 0e 15 84 74 00 d6 | 20 88 d7 d8 21 88 d9 0e |d....t..| ...!...|
|000002b0| 1a c0 5c 22 88 82 76 00 | c0 14 0e 12 16 1b 5c 66 |..\"..v.|......\f|
|000002c0| 83 86 00 dc dd de 8f 88 | 82 89 00 d6 20 88 0e 1f |........|.... ...|
|000002d0| 83 06 00 0e 1f 0e 20 0b | 5c 22 88 82 06 00 22 20 |...... .|\"...." |
|000002e0| 5b 6e 69 6c 20 70 72 6f | 6d 70 74 20 70 72 6f 6d |[nil pro|mpt prom|
|000002f0| 70 74 2d 73 74 72 69 6e | 67 20 65 72 72 20 63 6d |pt-strin|g err cm|
|00000300| 64 20 6e 6f 70 72 6f 6d | 70 74 20 22 2d 3e 22 20 |d noprom|pt "->" |
|00000310| 72 65 61 64 2d 6b 65 79 | 2d 73 65 71 75 65 6e 63 |read-key|-sequenc|
|00000320| 65 20 6c 61 73 74 2d 63 | 6f 6d 6d 61 6e 64 2d 63 |e last-c|ommand-c|
|00000330| 68 61 72 20 6b 65 79 2d | 62 69 6e 64 69 6e 67 20 |har key-|binding |
|00000340| 74 20 74 68 69 73 2d 63 | 6f 6d 6d 61 6e 64 20 30 |t this-c|ommand 0|
|00000350| 20 75 6e 69 76 65 72 73 | 61 6c 2d 61 72 67 75 6d | univers|al-argum|
|00000360| 65 6e 74 2d 6e 75 6d 2d | 65 76 65 6e 74 73 20 71 |ent-num-|events q|
|00000370| 75 69 74 2d 66 6c 61 67 | 20 6c 61 73 74 2d 69 6e |uit-flag| last-in|
|00000380| 70 75 74 2d 63 68 61 72 | 20 37 20 75 6e 72 65 61 |put-char| 7 unrea|
|00000390| 64 2d 63 6f 6d 6d 61 6e | 64 2d 65 76 65 6e 74 73 |d-comman|d-events|
|000003a0| 20 70 72 65 66 69 78 2d | 61 72 67 20 74 68 69 73 | prefix-|arg this|
|000003b0| 2d 63 6f 6d 6d 61 6e 64 | 2d 6b 65 79 73 20 31 20 |-command|-keys 1 |
|000003c0| 69 6e 68 69 62 69 74 2d | 71 75 69 74 20 64 69 6e |inhibit-|quit din|
|000003d0| 67 20 6d 65 73 73 61 67 | 65 20 22 51 75 69 74 22 |g messag|e "Quit"|
|000003e0| 20 74 68 72 6f 77 20 72 | 65 74 75 72 6e 2d 74 61 | throw r|eturn-ta|
|000003f0| 67 20 63 75 72 72 65 6e | 74 2d 70 72 65 66 69 78 |g curren|t-prefix|
|00000400| 2d 61 72 67 20 63 6f 6e | 64 69 74 69 6f 6e 73 20 |-arg con|ditions |
|00000410| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 09 21 88 |(byte-co|de "..!.|
|00000420| 5c 6e 13 5c 66 c5 14 84 | 13 00 0e 06 c7 3d 83 2e |\n.\f...|.....=..|
|00000430| 00 c5 16 08 0e 09 84 2b | 00 ca 20 88 cb cc 21 88 |.......+|.. ...!.|
|00000440| cd 0e 0e c5 5c 22 88 82 | 2e 00 ca 20 88 c5 87 22 |....\"..|... ..."|
|00000450| 20 5b 63 6f 6d 6d 61 6e | 64 2d 65 78 65 63 75 74 | [comman|d-execut|
|00000460| 65 20 63 6d 64 20 74 68 | 69 73 2d 63 6f 6d 6d 61 |e cmd th|is-comma|
|00000470| 6e 64 20 6c 61 73 74 2d | 63 6f 6d 6d 61 6e 64 20 |nd last-|command |
|00000480| 71 75 69 74 2d 66 6c 61 | 67 20 6e 69 6c 20 6c 61 |quit-fla|g nil la|
|00000490| 73 74 2d 69 6e 70 75 74 | 2d 63 68 61 72 20 37 20 |st-input|-char 7 |
|000004a0| 75 6e 72 65 61 64 2d 63 | 6f 6d 6d 61 6e 64 2d 65 |unread-c|ommand-e|
|000004b0| 76 65 6e 74 73 20 69 6e | 68 69 62 69 74 2d 71 75 |vents in|hibit-qu|
|000004c0| 69 74 20 64 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |it ding |message |
|000004d0| 22 51 75 69 74 22 20 74 | 68 72 6f 77 20 72 65 74 |"Quit" t|hrow ret|
|000004e0| 75 72 6e 2d 74 61 67 5d | 20 33 29 20 28 28 62 75 |urn-tag]| 3) ((bu|
|000004f0| 66 66 65 72 2d 72 65 61 | 64 2d 6f 6e 6c 79 20 28 |ffer-rea|d-only (|
|00000500| 62 79 74 65 2d 63 6f 64 | 65 20 22 08 83 09 00 09 |byte-cod|e ".....|
|00000510| 12 82 14 00 c3 20 88 c4 | c5 21 88 c6 c7 21 88 c3 |..... ..|.!...!..|
|00000520| 87 22 20 5b 6c 6f 6f 70 | 2d 66 75 6e 63 74 69 6f |." [loop|-functio|
|00000530| 6e 20 63 6f 6e 64 69 74 | 69 6f 6e 73 20 65 72 72 |n condit|ions err|
|00000540| 20 64 69 6e 67 20 6d 65 | 73 73 61 67 65 20 22 42 | ding me|ssage "B|
|00000550| 75 66 66 65 72 20 69 73 | 20 72 65 61 64 2d 6f 6e |uffer is| read-on|
|00000560| 6c 79 22 20 73 69 74 2d | 66 6f 72 20 32 5d 20 32 |ly" sit-|for 2] 2|
|00000570| 29 29 20 28 62 65 67 69 | 6e 6e 69 6e 67 2d 6f 66 |)) (begi|nning-of|
|00000580| 2d 62 75 66 66 65 72 20 | 28 62 79 74 65 2d 63 6f |-buffer |(byte-co|
|00000590| 64 65 20 22 08 83 09 00 | 09 12 82 14 00 c3 20 88 |de "....|...... .|
|000005a0| c4 c5 21 88 c6 c7 21 88 | c3 87 22 20 5b 6c 6f 6f |..!...!.|.." [loo|
|000005b0| 70 2d 66 75 6e 63 74 69 | 6f 6e 20 63 6f 6e 64 69 |p-functi|on condi|
|000005c0| 74 69 6f 6e 73 20 65 72 | 72 20 64 69 6e 67 20 6d |tions er|r ding m|
|000005d0| 65 73 73 61 67 65 20 22 | 42 65 67 69 6e 6e 69 6e |essage "|Beginnin|
|000005e0| 67 20 6f 66 20 42 75 66 | 66 65 72 22 20 73 69 74 |g of Buf|fer" sit|
|000005f0| 2d 66 6f 72 20 32 5d 20 | 32 29 29 20 28 65 6e 64 |-for 2] |2)) (end|
|00000600| 2d 6f 66 2d 62 75 66 66 | 65 72 20 28 62 79 74 65 |-of-buff|er (byte|
|00000610| 2d 63 6f 64 65 20 22 08 | 83 09 00 09 12 82 14 00 |-code ".|........|
|00000620| c3 20 88 c4 c5 21 88 c6 | c7 21 88 c3 87 22 20 5b |. ...!..|.!..." [|
|00000630| 6c 6f 6f 70 2d 66 75 6e | 63 74 69 6f 6e 20 63 6f |loop-fun|ction co|
|00000640| 6e 64 69 74 69 6f 6e 73 | 20 65 72 72 20 64 69 6e |nditions| err din|
|00000650| 67 20 6d 65 73 73 61 67 | 65 20 22 45 6e 64 20 6f |g messag|e "End o|
|00000660| 66 20 42 75 66 66 65 72 | 22 20 73 69 74 2d 66 6f |f Buffer|" sit-fo|
|00000670| 72 20 32 5d 20 32 29 29 | 20 28 65 72 72 6f 72 20 |r 2] 2))| (error |
|00000680| 28 62 79 74 65 2d 63 6f | 64 65 20 22 08 83 09 00 |(byte-co|de "....|
|00000690| 09 12 82 24 00 c3 20 88 | c4 c5 09 40 c6 3d 83 1b |...$.. .|...@.=..|
|000006a0| 00 09 41 40 82 1e 00 c7 | 09 21 5c 22 88 c8 c9 21 |..A@....|.!\"...!|
|000006b0| 88 c3 87 22 20 5b 6c 6f | 6f 70 2d 66 75 6e 63 74 |..." [lo|op-funct|
|000006c0| 69 6f 6e 20 63 6f 6e 64 | 69 74 69 6f 6e 73 20 65 |ion cond|itions e|
|000006d0| 72 72 20 64 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |rr ding |message |
|000006e0| 22 45 72 72 6f 72 3a 20 | 25 73 22 20 65 72 72 6f |"Error: |%s" erro|
|000006f0| 72 20 70 72 69 6e 31 2d | 74 6f 2d 73 74 72 69 6e |r prin1-|to-strin|
|00000700| 67 20 73 69 74 2d 66 6f | 72 20 32 5d 20 34 29 29 |g sit-fo|r 2] 4))|
|00000710| 29 20 6c 6f 6f 70 2d 66 | 75 6e 63 74 69 6f 6e 20 |) loop-f|unction |
|00000720| 6c 6f 6f 70 2d 73 74 61 | 74 65 5d 20 34 5d 29 0a |loop-sta|te] 4]).|
|00000730| 28 64 65 66 61 6c 69 61 | 73 20 27 45 6c 65 63 74 |(defalia|s 'Elect|
|00000740| 72 69 63 2d 70 6f 70 2d | 75 70 2d 77 69 6e 64 6f |ric-pop-|up-windo|
|00000750| 77 20 23 5b 28 62 75 66 | 66 65 72 20 26 6f 70 74 |w #[(buf|fer &opt|
|00000760| 69 6f 6e 61 6c 20 6d 61 | 78 2d 68 65 69 67 68 74 |ional ma|x-height|
|00000770| 29 20 22 c0 09 21 86 08 | 00 c2 20 1b c4 09 21 1d |) "..!..|.. ...!.|
|00000780| c6 c7 21 1e 08 c7 1e 09 | ca 1e 0b ca 1e 5c 66 0d |..!.....|.....\f.|
|00000790| 84 26 00 cd ce 09 5c 22 | 82 9b 00 8a 0d 71 88 cf |.&....\"|.....q..|
|000007a0| 65 64 5c 22 16 5c 66 0e | 10 83 3e 00 0e 10 0e 5c |ed\".\f.|..>....\|
|000007b0| 66 54 5e 82 41 00 0e 5c | 66 54 0e 11 5d d2 8b 5e |fT^.A..\|fT..]..^|
|000007c0| 16 0b 29 d3 0b 21 0d 3d | 83 59 00 d4 0b 21 88 82 |..)..!.=|.Y...!..|
|000007d0| 7a 00 0e 08 83 76 00 d5 | 0b 21 62 88 d6 09 21 88 |z....v..|.!b...!.|
|000007e0| c2 20 13 d7 0e 0b d8 0b | 21 5a 21 88 82 7a 00 d9 |. ......|!Z!..z..|
|000007f0| 0d 21 88 0e 10 84 97 00 | 0e 0b d8 c2 20 21 56 83 |.!......|.... !V.|
|00000800| 97 00 d5 0b 21 62 88 d7 | 0e 0b d8 0b 21 5a 21 88 |....!b..|....!Z!.|
|00000810| 65 62 88 0b 2e 06 87 22 | 20 5b 67 65 74 2d 62 75 |eb....."| [get-bu|
|00000820| 66 66 65 72 2d 77 69 6e | 64 6f 77 20 62 75 66 66 |ffer-win|dow buff|
|00000830| 65 72 20 73 65 6c 65 63 | 74 65 64 2d 77 69 6e 64 |er selec|ted-wind|
|00000840| 6f 77 20 77 69 6e 20 67 | 65 74 2d 62 75 66 66 65 |ow win g|et-buffe|
|00000850| 72 20 62 75 66 20 6f 6e | 65 2d 77 69 6e 64 6f 77 |r buf on|e-window|
|00000860| 2d 70 20 74 20 6f 6e 65 | 2d 77 69 6e 64 6f 77 20 |-p t one|-window |
|00000870| 70 6f 70 2d 75 70 2d 77 | 69 6e 64 6f 77 73 20 6e |pop-up-w|indows n|
|00000880| 69 6c 20 74 61 72 67 65 | 74 2d 68 65 69 67 68 74 |il targe|t-height|
|00000890| 20 6c 69 6e 65 73 20 65 | 72 72 6f 72 20 22 42 75 | lines e|rror "Bu|
|000008a0| 66 66 65 72 20 25 73 20 | 64 6f 65 73 20 6e 6f 74 |ffer %s |does not|
|000008b0| 20 65 78 69 73 74 22 20 | 63 6f 75 6e 74 2d 6c 69 | exist" |count-li|
|000008c0| 6e 65 73 20 6d 61 78 2d | 68 65 69 67 68 74 20 77 |nes max-|height w|
|000008d0| 69 6e 64 6f 77 2d 6d 69 | 6e 2d 68 65 69 67 68 74 |indow-mi|n-height|
|000008e0| 20 28 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 20 | ((byte-|code ". |
|000008f0| 88 c1 c2 20 21 53 87 22 | 20 5b 64 65 6c 65 74 65 |... !S."| [delete|
|00000900| 2d 6f 74 68 65 72 2d 77 | 69 6e 64 6f 77 73 20 77 |-other-w|indows w|
|00000910| 69 6e 64 6f 77 2d 68 65 | 69 67 68 74 20 73 65 6c |indow-he|ight sel|
|00000920| 65 63 74 65 64 2d 77 69 | 6e 64 6f 77 5d 20 32 29 |ected-wi|ndow] 2)|
|00000930| 29 20 77 69 6e 64 6f 77 | 2d 62 75 66 66 65 72 20 |) window|-buffer |
|00000940| 73 65 6c 65 63 74 2d 77 | 69 6e 64 6f 77 20 77 69 |select-w|indow wi|
|00000950| 6e 64 6f 77 2d 73 74 61 | 72 74 20 70 6f 70 2d 74 |ndow-sta|rt pop-t|
|00000960| 6f 2d 62 75 66 66 65 72 | 20 65 6e 6c 61 72 67 65 |o-buffer| enlarge|
|00000970| 2d 77 69 6e 64 6f 77 20 | 77 69 6e 64 6f 77 2d 68 |-window |window-h|
|00000980| 65 69 67 68 74 20 73 77 | 69 74 63 68 2d 74 6f 2d |eight sw|itch-to-|
|00000990| 62 75 66 66 65 72 5d 20 | 34 5d 29 0a 28 70 72 6f |buffer] |4]).(pro|
|000009a0| 76 69 64 65 20 28 71 75 | 6f 74 65 20 65 6c 65 63 |vide (qu|ote elec|
|000009b0| 74 72 69 63 29 29 0a | |tric)). | |
+--------+-------------------------+-------------------------+--------+--------+